package com.hyper_yang._01_jdbc.pojo;

public class Account { // Account == t_account
    // todo: 列名即为属性名
    private Integer id; // primary key 不存在相等情况，可以不重写 hashcode()、equals()
    private String name;
    private Integer balance;

    public Account() {
    }

    public Account(Integer id, String name, Integer balance) {
        this.id = id;
        this.name = name;
        this.balance = balance;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getBalance() {
        return balance;
    }

    public void setBalance(Integer balance) {
        this.balance = balance;
    }

    @Override
    public String toString() {
        return "Account{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", balance=" + balance +
                '}';
    }
}
